package com.wander.rep.patient;

import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
public class Location implements Serializable {
	/*KITCHEN("Kitchen", 1),
	LIVING_ROOM("Living Room", 2),
	DINING_ROOM("Dining Room", 3),
	BEDROOM("Bedroom 1", 4),
	BEDROOM2("Bedroom 2", 5),
	ENTRANCE("Entrance", 6),
	GARDEN("Garden", 7);*/
	
	@SuppressWarnings("unused")
	private String name;
	private int code;
	private int timestamp;
	
	private Status lStatus;

	public Location(int rCode)
	{
		setCode(rCode);
	}

	public Location(String rName) 
	{
		setName(rName);
		setCode(0);
	}

	public String getName() {
		
		/*String actualName = "";
		
		switch(code)
		{
		case 1 :
			actualName = "Kitchen";
			break;
		case 2:
			actualName = "Living Room";
			break;
		case 3:
			actualName = "Dining Room";
			break;
		case 4: 
			actualName = "Bedroom 1";
			break;
		case 5:
			actualName = "Bedroom 2";
			break;
		case 6:
			actualName = "Entrance";
			break;
		case 7:
			actualName = "Garden";
			break;
		}*/
		
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Status getlStatus() {
		return lStatus;
	}

	public void setlStatus(Status lStatus) {
		this.lStatus = lStatus;
	}

	public int getTimestamp() {
		return timestamp-3600;
	}

	public void setTimestamp(int timestamp) {
		this.timestamp = timestamp;
	}
}